/*
 * @Author: dlb
 * @Date: 2020-07-03 14:28:53
 * @LastEditTime: 2020-07-03 14:28:53
 * @LastEditors: dlb
 * @Description:
 * @FilePath: \zhufeng-cli-project\my-cli2\src\utils\common.js
 * @可以输入预定的版权声明、个性签名、空行等
 */
export const betterRequire = (absPath) => {//两种引入方式
    let module = require(absPath);
    if(module.default){
        return module.default;
    }
    return module;
}